import React from 'react'
import store from '../../redux/store'
import { addAction } from '../../redux/reducers/CountReducer'
import { increAction } from '../../redux/reducers/ZanReducer';

export default function TestCom() {
  return (
    <div>
      <hr />
      <button className='btn btn-primary' onClick={() => {
        store.dispatch(addAction(1));
      }}>新增Count</button>
      <button className='btn btn-primary' onClick={() => {
        store.dispatch(increAction(2))
      }}>新增 Zan</button>
    </div>
  )
}
